package com.jiezhuo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiezhuo.entity.cmeduSchool.XxdmNewMenu;
import com.jiezhuo.entity.cmeduSchool.XxdwUserlist;
import com.jiezhuo.mapper.center.XxdmNewMenuMapper;
import com.jiezhuo.mapper.center.XxdwUserlistMapper;
import com.jiezhuo.service.cmeduSchool.XxdwUserlistService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 服务接口实现
 *
 * @author kancy
 * @description 由 Mybatisplus Code Generator 创建
 * @since 2024-06-06 08:59:27
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class XxdwUserlistServiceImpl extends ServiceImpl<XxdwUserlistMapper, XxdwUserlist> implements XxdwUserlistService {
    private final XxdwUserlistMapper xxdwUserlistMapper;

    @Override
    public List<Map<String, Object>> getSysUserAdmin(Map<String, Object> map) {
        map.put("pageNumber", (Integer.parseInt(map.get("pageNumber").toString()) - 1) * Integer.parseInt(map.get("pageSize").toString()));
        return xxdwUserlistMapper.getSysUserAdmin(map);
    }

    @Override
    public List<Map<String, Object>> getTeacherInfo(String gzXqdm) {
        return xxdwUserlistMapper.getTeacherInfo(gzXqdm);
    }
}